package com.glsc.ngateway.platform.utils;

import org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorOracleDatabaseImpl;

import java.sql.ResultSet;
import java.sql.SQLException;

public class CustomSequenceInformationExtractor extends SequenceInformationExtractorOracleDatabaseImpl {
    /**
     * Singleton access
     */
    public static final CustomSequenceInformationExtractor INSTANCE = new CustomSequenceInformationExtractor();

    @Override
    protected Long resultSetMinValue(ResultSet resultSet) throws SQLException {
        return resultSet.getBigDecimal("min_value").longValue();
    }
}